<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@ page import="java.util.List" %>
<%@ page import="jman.competition16.Menu" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>所有订单</title>
</head>
<body>
<%
List<Menu> menuList=(List<Menu>)request.getAttribute("menuList");
%>
<table>
<tr>
<th>Table Number</th>
<th>Dish Name</th>
</tr>
<%
for(int i=0;i<menuList.size();++i){
%>
<tr>
<td><%=menuList.get(i).getNumber() %></td>
<td><%=menuList.get(i).getDishName() %></td>
<%
if(menuList.get(i).getStatus().equals("未上菜")){
%>
<td>
<form action="/zz_java3/Finish">
<input type="hidden" name="id" value=<%=menuList.get(i).getId() %>>
<input type="submit" value="上菜" onclick="FinishSuccess()">
</form>
</td>
<%
}
%>
</tr>
<%
}
%>
</table>
<script type="text/javascript">
function FinishSuccess(){
		alert("完成");
}
</script>
<br>
<a href="/zz_java3/jman.competition16/CookerPage.jsp">返回主页</a>
</body>
</html>